package com.platform.api.bzproject.controller;


import com.platform.api.bzproject.model.MiniLogo;
import com.platform.api.bzproject.service.IMiniLogoService;
import com.platform.common.core.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * <p>
 * 小程序日志 前端控制器
 * </p>
 *
 * @author guoshao
 * @since 2021-12-27
 * 源码联系微信：2549789059
 */
@RestController
@RequestMapping("{appid}/miniLogo")
public class MiniLogoController {

    @Autowired
    private IMiniLogoService iMiniLogoService;


    @PostMapping("addLogo")
    public Result addLogo(@RequestBody MiniLogo miniLogo){
        miniLogo.setCreateTime(new Date());
        iMiniLogoService.save(miniLogo);
        return Result.success();
    }

}
